package com.example.chat.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore

@Entity(tableName = "topic_participant", primaryKeys = ["user_id","topic_id"])
data class TopicParticipant(
    @ColumnInfo(name = "user_id") val userId: Long,
    @ColumnInfo(name = "topic_id") val topicId : Long,
    @Ignore val username: String = ""
){
    constructor(userId: Long,  topicId: Long): this(userId, topicId,"")
}